package com.chinatechstar.decis.mapper;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import com.chinatechstar.decis.entity.DecisEconWater;

/**
 * 数据持久接口层
 *
 * @author Rei
 */
public interface DecisEconWaterMapper {

    /**
     * 查询所有数据
     *
     * @return List<DecisEconWater>
     */
    List<DecisEconWater> findDecisEconWaterAll();

    /**
     * 查询分页或导出数据
     *
     * @param paramMap 参数Map
     * @return List<LinkedHashMap < String, Object>>
     */
    List<LinkedHashMap<String, Object>> findDecisEconWaterByCondition(Map<String, Object> paramMap);

    /**
     * 根据主键ID数据查询数据
     *
     * @param id ID
     * @return DecisEconWater
     */
    DecisEconWater findDecisEconWaterById(Long id);

    /**
     * 根据主键数组数据查询数据
     *
     * @param ids ID数组
     * @return List<DecisEconWater>
     */
    List<DecisEconWater> findDecisEconWaterByIds(Long[] ids);

    /**
     * 根据 deciseoilYear deciseoilMonth 查询数据
     *
     * @param year  月份
     * @param month 月份
     * @return DecisEconWater
     */
    DecisEconWater findDecisEconWaterByYearMon(int year, int month);

    /**
     * 新增
     *
     * @param decisEconWater 实体
     * @return int
     */
    int insertDecisEconWater(DecisEconWater decisEconWater);

    /**
     * 批量新增
     *
     * @param decisEconWaters 实体数组
     * @return int
     */
    int insertDecisEconWaters(List<DecisEconWater> decisEconWaters);

    /**
     * 编辑
     *
     * @param decisEconWater 实体
     * @return int
     */
    int updateDecisEconWater(DecisEconWater decisEconWater);

    /**
     * 批量编辑
     *
     * @param decisEconWaters 实体数组
     * @return int
     */
    int updateDecisEconWaters(List<DecisEconWater> decisEconWaters);

    /**
     * 删除
     *
     * @param id ID
     * @return int
     */
    int deleteDecisEconWaterById(Long id);

    /**
     * 批量删除
     *
     * @param ids ID数组
     * @return int
     */
    int deleteDecisEconWaterByIds(Long[] ids);

}
